package com.cjy.dao;

import com.cjy.pojo.Admin;


import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface adminMapper {
    //根据id查询,返回一个Admin
    Admin queryAdminById(@Param("aid") int id);

    //查询全部Book,返回list集合
    List<Admin> adminAll();


    Admin queryAdminNameAndPwd(@Param("AdminName")String AdminName,@Param("AdminPwd") String AdminPwd);

    //查询该用户是否注册
    List<Admin> adminByName(@Param("Name") String Name);
    //增加一个用户
    int addAdmin(Admin admin);





}
